package com.library.dao;

import com.library.entity.Admin;

import java.util.List;

public interface AdminRepository {
    public List<Admin> findAll();

    public List<Admin>findByPage(int offset,int limit);

    public Admin findByName(String userName);

    public int countAdmins();

    public void updateInfo(Admin user);

    public void deleteByName(String userName);

    public void addAdmin(Admin admin);

    public void updateAdmin(String password,long id);

}
